const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    type: {
      type: Number,
      value: 1
    },
    show: {
      type: Boolean,
      value: false
    },
    jinqun: { //会员进群参数
      type: Object,
      value: {}
    },
    items3: { //普通进群参数
      type: Object,
      value: {}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    yin: false, //音效选择
    she: false, //答对了选项
    code: '', //内用
    // domain:Api.domain,
    show2: ''
  },

  /**
   * 组件的方法列表
   */
  methods: {
    close() {
      this.setData({
        show: false
      })
      this.triggerEvent('close')
    },

    btn() { //确定
      network.put('yin', this.data.yin)
      network.put('she', this.data.she)
      this.close()
    },
    bindcode(e) {
      this.setData({
        code: e.detail.value
      })
    },
    btn3() { //激活码确定
      var that = this
      that.triggerEvent('zhi', this.data.code)

    },
    huoqu() { //如何获取激活码
      this.setData({
        show: false,
        show2: true
      })
      // app.globalData.content = network.get('can').big_activation_code;
      // wx.navigateTo({
      //   url: '/pages/waparse/waparse?title=如何获取激活码' + '&is_url=' + 1,
      // })
    },
  }
})